<div class='all-versions-back'>
  <LinkTo @route="crate" @model={{this.model}}>&#11013; Back to Main Page</LinkTo>
</div>

<div class='info'>
  <span class='small'>
    All <span class='num'>{{ this.model.versions.length }}</span>
    versions of <span class='num'>{{ this.model.name }}</span> since
    {{moment-format this.model.created_at 'LL'}}
  </span>
</div>

<div local-class='list' class='white-rows'>
  {{#each this.model.versions as |version|}}
    <div class='row'>
      <div>
        <LinkTo @route="crate.version" @model={{version.num}}>{{ version.num }}</LinkTo>

        <span class='small'>{{moment-format version.created_at 'LL'}}</span>
        {{#if version.yanked}}
          <span class='yanked'>yanked</span>
        {{/if}}
      </div>
      <LinkTo @route="crate.version" @model={{version.num}} class="arrow">
        {{svg-jar "right-arrow"}}
      </LinkTo>
    </div>
  {{/each}}
</div>
